package com.xdf.data_transmitter.service;

import com.xdf.data_transmitter.dao.erp.AreaMapper;
import com.xdf.data_transmitter.model.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {

    @Autowired
    private AreaMapper dao;

    @Override
    public int deleteByPrimaryKey(String sId) {
        return dao.deleteByPrimaryKey(sId);
    }

    @Override
    public int insert(Area record) {
        return dao.insert(record);
    }

    @Override
    public Area selectByPrimaryKey(String sId) {
        return dao.selectByPrimaryKey(sId);
    }

    @Override
    public List<Area> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Area record) {
        return dao.updateByPrimaryKey(record);
    }
}
